import axiosShop from "@/utils/axiosShop.js";
import axiosMine from "@/utils/axiosMine.js";

//获取首页数据
//传params
/*export const getData = () => {
    return axiosShop.get('/page/detail', {
        params: {
          pageId:0
        }
    })
}*/
export const getData = () => {
    console.log('getData2')
    return axiosShop.get('/page/detail&pageId=0')
}

// token建议在拦截器中统一添加
/*export const addCart = () => {
    return axiosShop.post('/cart/add',{
            "goodsId": 10040,
            "goodsSkuId": "0",
            "goodsNum": 1
    },{
        headers:{
            'Access-Token':'ae9405572409c5078d1fdaae795c1b62'
        }
    }
    )
}*/
export const addCart = () => {
    return axiosShop.post('/cart/add',{
            "goodsId": 10040,
            "goodsSkuId": "0",
            "goodsNum": 1
        }
    )
}


